import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;

/**
 * 
 */

/**
 * @author Thai Huy Hoang_T123620
 * 
 */
public class cWE07_Numbers_Prog02_T123620 extends JFrame {
	JButton btnC = new JButton("Calculate");
	JTextField txtS = new JTextField();
	JLabel lblS = new JLabel("String");
	JLabel lblS1 = new JLabel("Result");
	JTextArea txt = new JTextArea();

	public cWE07_Numbers_Prog02_T123620() {
		this.setSize(300, 300);
		this.setTitle("T123620 - Numbers");
		this.setLayout(null);

		this.add(btnC);
		this.add(lblS);
		this.add(lblS1);
		this.add(txtS);
		this.add(txt);

		btnC.setBounds(100, 150, 100, 20);
		lblS.setBounds(10, 10, 50, 20);
		lblS1.setBounds(10, 40, 60, 90);
		txtS.setBounds(50, 10, 220, 20);
		txt.setBounds(50, 40, 220, 90);

	
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		cWE07_Numbers_Prog02_T123620 mainWindow = new cWE07_Numbers_Prog02_T123620();
		mainWindow.setDefaultCloseOperation(EXIT_ON_CLOSE);
		mainWindow.setVisible(true);

	}

}
